const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');
var schema           = new mongoose.Schema({
    // cateId       : mongoose.Schema.ObjectId,
    drugName     : String,   //药品名
    egName       : String,   //药品英文名
    mainSymptom  : String,   //主要适用症状
    img          : String,   //药品图片
    dosageForm   : String,   //剂型
    price        : Number,   //产品价格
    drugCate     : String,   //药品类型
    deugFact     : String,   //药品介绍
    symptom      : String,   //使用症状
    announcements: String,   //注意事项

});
schema.plugin(mongoosePaginate);
module.exports = mongoose.model('Products', schema, 'products');